import request from '@/utils/request'

// 查询领料出库列表
export function listPick(query) {
  return request({
    url: '/mes/pick/list',
    method: 'get',
    params: query
  })
}

// 查询领料出库详细
export function getPick(id) {
  return request({
    url: '/mes/pick/' + id,
    method: 'get'
  })
}

// 新增领料出库
export function addPick(data) {
  return request({
    url: '/mes/pick',
    method: 'post',
    data: data
  })
}

// 修改领料出库
export function updatePick(data) {
  return request({
    url: '/mes/pick',
    method: 'put',
    data: data
  })
}

// 删除领料出库
export function delPick(id) {
  return request({
    url: '/mes/pick/' + id,
    method: 'delete'
  })
}
